#include "multicastclient.h"

using namespace std;
MulticastClient::MulticastClient()
{
	WORD wVersionRequested = MAKEWORD(2,2);
	WSADATA WSAdata;
	WSAStartup(wVersionRequested, &WSAdata);

	sock.Create("UDP");
	sock.Bind(9035);
	sock.setMulticastClient("239.255.255.255");
}

void MulticastClient::receivePacket(char* buffer, int packetSize)
{
	sock.RecvFrom(buffer, packetSize);
}